Skip to content

Conversation

SupaMaggie70Incorporated
Copy link
Contributor

@SupaMaggie70Incorporated SupaMaggie70Incorporated commented Aug 15, 2025

Connections
This is to address test failings in #7930 due to not respecting supported backends. In fact, its pulled directly from the last few commits there.

Description
Previously, the shader bencher was using snapshot shaders but not respecting their options, such as which backends they should be tested against. As a result, in #7930, a mesh shader test shader that only can be written to SPIRV was causing the shader bencher to fail. I have updated the shader bencher and snapshots to share more logic.

See this comment

Testing
The change is to testing itself. I have verified that the bencher still fails on bad shader inputs, and that it ignores my mesh shader as it is supposed to.

Squash or Rebase?

Squash

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

@cwfitzgerald cwfitzgerald self-assigned this Aug 20, 2025
Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm this is a tough one. It's almost like we should have a new crate for naga tests, which wgpu-benchmark can depend on.

I'll bring this up at the next meeting as we had a whole discussion about the placement of naga test and I'm not sure how this new issue would change opinion.

walkdir.workspace = true
wgpu-test.workspace = true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty uncomfortable making this back edge - I feel like there's a better design for sharing the benchmarks. More specifically I'm not really sure why this backedge needs to be here at all if the tests have been moved to wgpu-test.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just noting that this needs discussion before landing

@SupaMaggie70Incorporated
Copy link
Contributor Author

Just noting that this needs discussion before landing

Ok. I probably won't be able to be there but I don't think I'd be of use in those discussions anyway. And its fine if this PR gets closed, I made these changes to stop a CI from failing which it already accomplished.

@cwfitzgerald
Copy link
Member

cwfitzgerald commented Aug 27, 2025

And its fine if this PR gets closed, I made these changes to stop a CI from failing which it already accomplished.

Don't you still need it to land your changes?

Ok. I probably won't be able to be there but I don't think I'd be of use in those discussions anyway

We'll keep you in the loop, no worries

@SupaMaggie70Incorporated
Copy link
Contributor Author

And its fine if this PR gets closed, I made these changes to stop a CI from failing which it already accomplished.

Don't you still need it to land your changes?

Ok. I probably won't be able to be there but I don't think I'd be of use in those discussions anyway

We'll keep you in the loop, no worries

I will need it for whenever mesh shader related tests get added. I'd really really like to get the tests in with WGSL parsing but if that has to come later its not my problem (and the testing has already been done on those changes).

@SupaMaggie70Incorporated SupaMaggie70Incorporated marked this pull request as draft August 27, 2025 22:55
@cwfitzgerald
Copy link
Member

Alright, I'll see if we can muse up a better solution as we definitely want this problem to be solved when mesh shader wgsl-in lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants